package com.samphanie.auiu.mbg.model;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.SuperBuilder;

/**
 * 资源对象 sys_resource
 *
 * @author zsy
 * @date 2021-05-18
 */
@Data
@With
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_resource")
@EqualsAndHashCode(callSuper = true)
public class SysResource extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 资源分类
     */
    private Long cateId;
    /**
     * 资源名称
     */
    private String name;
    /**
     * 资源路径 -> api请求路由
     */
    private String path;
    /**
     * 资源类型 1 - 按钮 2 - api
     */
    private Integer type;
    /**
     * 方法类型 GET POST  PUT DELETE
     */
    private String method;

}
